home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 3_7.lha / 3_7 / 3_7abtst.c < prev    next >
Text File  |  1993-08-08  |  479b  |  28 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <stream.h>
  6. ifdef TSTA
  7.  include "3_7a.c"
  8. endif
  9. ifdef TSTB
  10.  include "3_7b.c"
  11. endif
  12.  
  13. har *x[] =
  14.    {
  15.    "hello there",
  16.    "",
  17.    "This is a test",
  18.    "The quick brown fox jumped over the lazy brown dog",
  19.    0
  20.    };
  21.  
  22. ain()
  23.  
  24.    for (char **xp = x; *xp; xp++)
  25. cout << "str='" << *xp << "', len=" << strlen(*xp) << "\n";
  26.    return 0;
  27.  
  28.